"""untitled_project URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

from myapp.views import *

urlpatterns = [
    path('admin/', admin.site.urls),

    path('cs/',Cs.as_view()),                           #测试axios是否调通
    path('mycode/',MyCode.as_view()),                   #获取随机验证码
    path('register/',Register.as_view()),               #后台管理系统注册
    path('login/',Login.as_view()),                     #管理系统登录
    path('showuser/',Show_User.as_view()),              #获取全部用户信息
    path('upup/',UpUp.as_view()),                       #账号激活
    path('u_p/',update_password.as_view()),             #忘记密码
    path('up_qx/',Update_Qx.as_view()),                 #用户权限修改
    path('companies_info/',Companies_Info.as_view()),   #获取对应公司信息
    path('get_tag/', Get_Tag.as_view()),                # 获取标签信息
    path('e_type/',E_type.as_view()),                   #获取货物类别信息
    path('sendemail/',SendVerifyEmail.as_view()),       #发送邮件测试
    path('add_tags/',Add_Tags.as_view()),               #添加标签信息
    path('add_c_type/',Add_CType.as_view()),            #添加货物类型

]
